package map;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.ImageIcon;

public class StationPanel extends JPanel {
	
	

	/**
	 * Create the panel.
	 */
	public StationPanel(final Station s) {
		
		JLabel lblNewLabel = new JLabel(s.getName());
		lblNewLabel.setIcon(new ImageIcon(StationPanel.class.getResource("/resources/station.png")));
		add(lblNewLabel);
		lblNewLabel.addMouseListener(new MouseListener(){

			@Override
			public void mouseClicked(MouseEvent e) {
				//System.out.println(s.getName());
				
			}

			@Override
			public void mousePressed(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseReleased(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseEntered(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void mouseExited(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
		});

	}

}
